<?php
namespace RTownley\CustomCollection\Model;

class Layer extends \Magento\Catalog\Model\Layer
{
	public function getProductCollection()
	{
		$collection = parent::getProductCollection();
		$collection->addAttributeToFilter('onsale', ['eq' => '1']);
		return $collection;
	}
}
